package com.api.shopapi.service.impl;


import com.api.shopapi.entity.TotalOrderMonth;
import com.api.shopapi.entity.TotalOrderYear;
import com.api.shopapi.mapper.TotalOrderYearMapper;
import com.api.shopapi.service.TotalOrderYearService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("TotalOrderYearServiceImplOne")
public class TotalOrderYearServiceImpl implements TotalOrderYearService {


    @Autowired
    private TotalOrderYearMapper totalOrderYearMapper;

    @Override
    public
    int insert(TotalOrderYear totalOrderYear){
        return totalOrderYearMapper.insert(totalOrderYear);
    }

    @Override
    public
    List<TotalOrderMonth> ListLatest(String businessCode){
        return totalOrderYearMapper.ListLatest(businessCode);
    }

}
